<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="../js/vue2.6.12.js"></script>
	</head>
	<body>
		<div id="app">
			<input type="text" name="" id="inpt" value="" v-model="inpt" @input="chan" />{{inpt}}
			<div>
				<ul>
					<li v-for="(item,index) in chan()" :key="index" >{{item}}</li>
				</ul>
			</div>
		</div>
	</body>
	<script type="text/javascript">
		var vm =new Vue({
			el:'#app',
			data:{
				inpt:'',
				lists:["1","2","3","4","5","6","7","8","9"]
			},
			methods:{
				chan(){
					 return  this.lists.filter(item=>item.includes(this.inpt));
				}
			}
		})
	</script>
</html>
